package cn.caplike.demo.repository.design.pattern.template;

public abstract class Game {
    protected abstract void initialize();
    protected abstract void start();
    protected abstract void stop();

    public final void play() { // 模版
        initialize(); //初始化游戏
        start(); //开始游戏
        stop(); //结束游戏
    }
}
